home *** CD-ROM | disk | FTP | other *** search
- #ifndef _QDUTILS_H_
- #define _QDUTILS_H_
-
- #ifndef __QDOFFSCREEN__
- #include <QDOffscreen.h>
- #endif
-
- inline BitMap* GetGWorldBits(GWorldPtr theGWorld) { return((BitMap*)*GetGWorldPixMap(theGWorld)); }
- inline BitMap* GetWindowBits(WindowPtr theWindow) { return(&theWindow->portBits); }
- inline BitMap* GetGrafBits(GrafPtr thePort) { return(&thePort->portBits); }
-
- void CopyBitsToWindow(GWorldPtr sourceGWorld, WindowPtr destWindow,
- Rect *sourceR, Rect *destR, RgnHandle theClip = nil);
- void CopyBitsToGWorld(GWorldPtr sourceGWorld, GWorldPtr destGWorld,
- Rect *sourceR, Rect *destR, RgnHandle theClip = nil);
-
- void CenterRect(Rect *innerRect, Rect *outerRect);
- void MoveRectTo(Rect *theRect, short h, short v);
- void FlushRectTopLeft(Rect *theRect);
- void MoveRgnToRect(Rect *theRect, RgnHandle theRgn);
- void MoveRgnTo(short hLoc, short vLoc, RgnHandle theRgn);
-
- void CenterText(Str255 theText, Rect *destRect, Boolean horizCenter, Boolean vertCenter);
-
- void SetMonitorDepth(GDHandle monitor, short depth, Boolean color);
- Boolean HasMonitorDepth(GDHandle monitor, short depth, Boolean color);
- #endif // _QDUTILS_H_